package com.ys.erp.entity.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ys.erp.entity.data.bean.HuaBeiOrder;
import com.ys.erp.entity.mapper.HuaBeiOrderMapper;
import com.ys.erp.entity.service.IHuaBeiOrderService;
import jakarta.validation.constraints.NotBlank;
import org.springframework.stereotype.Service;

/**
 * @author lwj
 * @date 2025/7/31
 */

@Service
public class IHuaBeiOrderServiceImpl extends ServiceImpl<HuaBeiOrderMapper, HuaBeiOrder> implements IHuaBeiOrderService {


    @Override
    public HuaBeiOrder getByNo(@NotBlank String orderNo) {
        QueryWrapper<HuaBeiOrder> orderQw = new QueryWrapper<>();
        orderQw.lambda().eq(HuaBeiOrder::getOrderNo, orderNo);
        return this.getOne(orderQw);
    }

}
